package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 
 *
 * @author code-generate
 * @date 2022-02-16
 */
@Data
@DbTable(tableName = "t_schedule")
public class Schedule extends BaseEntity {
        /**
     * 养护内容
     */
    @DbTableField(columnName = "c_content", dbType = DbTypeEnum.VARCHAR)
    public String content ;

    /**
     * 执行日期
     */
    @DbTableField(columnName = "c_end_date", dbType = DbTypeEnum.VARCHAR)
    public LocalDateTime endDate ;

    /**
     * 养护说明
     */
    @DbTableField(columnName = "c_curing_desc", dbType = DbTypeEnum.VARCHAR)
    public String curingDesc ;

    /**
     * 养护用料
     */
    @DbTableField(columnName = "c_use", dbType = DbTypeEnum.VARCHAR)
    public String use ;

    /**
     * 养护任务ID
     */
    @DbTableField(columnName = "c_schedule_id", dbType = DbTypeEnum.VARCHAR)
    public String scheduleId ;

    /**
     * 年度养护计划ID
     */
    @DbTableField(columnName = "c_schedule_name", dbType = DbTypeEnum.VARCHAR)
    public String scheduleName ;

    /**
     * 计划年份
     */
    @DbTableField(columnName = "c_years", dbType = DbTypeEnum.INTEGER)
    public Integer years ;

    /**
     * 序号
     */
    @DbTableField(columnName = "c_orders", dbType = DbTypeEnum.INTEGER)
    public Integer orders ;

    /**
     * 计划编号
     */
    @DbTableField(columnName = "c_number", dbType = DbTypeEnum.VARCHAR)
    public String number ;

    /**
     * 所属项目组
     */
    @DbTableField(columnName = "c_team_id", dbType = DbTypeEnum.CHAR)
    public String teamId ;

    /**
     * 标段ID
     */
    @DbTableField(columnName = "c_section_id", dbType = DbTypeEnum.CHAR)
    public String sectionId ;

    /**
     * 样点ID
     */
    @DbTableField(columnName = "c_green_point_id", dbType = DbTypeEnum.CHAR)
    public String greenPointId ;

    /**
     * 上报时间
     */
    @DbTableField(columnName = "c_submit_date", dbType = DbTypeEnum.TIMESTAMP)
    public LocalDateTime submitDate ;

    /**
     * 1:新任务；2检查重做（主管）；3:审核重做（甲方）
     */
    @DbTableField(columnName = "c_type", dbType = DbTypeEnum.INTEGER)
    public Integer type ;

    /**
     * 1:新任务；2检查重做（主管）；3:审核重做（甲方）
     */
    @DbTableField(columnName = "c_type_desc", dbType = DbTypeEnum.VARCHAR)
    public String typeDesc ;

    /**
     * 流程状态。-1：作废；6：未上报；7：已上报；8：负责人驳回；9：负责人已验收；10：审核驳回；2：审核完成；11：审核未完成
     */
    @DbTableField(columnName = "c_flow_state", dbType = DbTypeEnum.INTEGER)
    public Integer flowState ;

    /**
     * 流程状态描述
     */
    @DbTableField(columnName = "c_flow_state_desc", dbType = DbTypeEnum.VARCHAR)
    public String flowStateDesc ;

    @DbTableField(columnName = "c_use_pay", dbType = DbTypeEnum.VARCHAR)
    private Double usePay;

    private List<ScheduleFile> fileList;

    @DbTableField(columnName = "c_result", dbType = DbTypeEnum.INTEGER)
    private Integer result;

    @DbTableField(columnName = "c_suggest", dbType = DbTypeEnum.VARCHAR)
    private String suggest;

    @DbTableField(columnName = "c_check_time", dbType = DbTypeEnum.TIMESTAMP)
    private LocalDateTime checkTime;

    @DbTableField(columnName = "c_checker_id", dbType = DbTypeEnum.INTEGER)
    private Integer checkerId;

    private String checker;

    @DbTableField(columnName = "c_sample_desc", dbType = DbTypeEnum.VARCHAR)
    private String sampleDesc;

    private List<SampleFile> sampleFileList;
}
